From 56a1d08176f27131ba04cabaad51719331a941d4 Mon Sep 17 00:00:00 2001 From: "Aaron M. Ucko" Date: Thu, 4 Aug 2016 23:04:57 -0400 Subject: [PATCH] debian/rules: Automatically determine which libraries are needed. The hand-maintained blacklist was incomplete. --- debian/changelog | 4 +++- debian/rules | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 0f032c3b..ee549689 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,10 @@ ncbi-blast+ (2.4.0-2) UNRELEASED; urgency=medium * NOT RELEASED YET. * Import upstream patch for remaining Boost compatibility issues as debian/patches/support_recent_boost. (Closes: #833451.) + * debian/rules: Automatically determine which libraries are needed. + (The hand-maintained blacklist was incomplete.) - -- Aaron M. Ucko Thu, 04 Aug 2016 23:02:18 -0400 + -- Aaron M. Ucko Thu, 04 Aug 2016 23:04:57 -0400 ncbi-blast+ (2.4.0-1) unstable; urgency=medium diff --git a/debian/rules b/debian/rules index 968ab4f6..ae92289c 100755 --- a/debian/rules +++ b/debian/rules @@ -61,7 +61,7 @@ override_dh_auto_test: instroot = debian/ncbi-blast+/usr leg_bin = debian/ncbi-blast+-legacy/usr/share/ncbi-blast+/bin override_dh_auto_install-arch: - cp c++/BUILD/lib/*.so $(instroot)/lib/ncbi-blast+/ + # cp c++/BUILD/lib/*.so $(instroot)/lib/ncbi-blast+/ cp c++/BUILD/bin/* $(instroot)/bin/ override_dh_auto_install-indep: @@ -78,8 +78,11 @@ override_dh_install-arch: # Clean up tests, demos, and internal build tools rm -f $(instroot)/bin/*test* $(instroot)/bin/seqdb_demo \ $(instroot)/bin/datatool \ - $(instroot)/bin/project_tree_builder \ - $(instroot)/lib/ncbi-blast+/libtest_*.so + $(instroot)/bin/project_tree_builder + for x in $(instroot)/bin/*; do \ + LD_LIBRARY_PATH=c++/BUILD/lib ldd $$x; \ + done 2>/dev/null | awk '/BUILD/ { print $$3 }' | sort -u | \ + xargs cp -v -t $(instroot)/lib/ncbi-blast+ override_dh_install-indep: if test -d $(leg_bin); then cp debian/legacy/legacy.sh $(leg_bin)/; fi -- 2.30.2